<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>{{title}}</title>
	</head>
	<body>
		自动跳转到glip
		<script>
			function redirect(url, closePopup) {
				if (closePopup && window.opener && /sso_isIFrameEmbedded\s*=\s*true/.test(document.cookie)) {
					window.opener.location = url;
					window.close();
				} else {
					window.location = url;
				}
			}

			try {
				redirect('glip://rclogin?code=abc', false);
			}
            catch(err){
				document.write('testing 无法自动打开glip。。。</br>');
				document.write('<a href="www.baidu.com"> go to glip</a>');
			}
		</script>

	</body>
</html>
